<?php
namespace Admin\Model;
use Think\Model;
class CommonModel extends Model{
	//统计每个表的某个内容的记录条数
	public function count($obj,$where=""){
		return M($obj)->where($where)->count();
	}
	
	//删除
// 	public function delete($obj,$id){
// 		M($obj)->delete($id);
// 		return mysql_affected_rows()==1 ? 1 : 0;
// 	}

}